package com.bootdo.repertory.service.impl;

import com.bootdo.repertory.dao.PurchaseDao;
import com.bootdo.repertory.domain.PurchaseDO;
import com.bootdo.repertory.service.PurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class PurchaseServiceImpl implements PurchaseService {
	@Autowired
	private PurchaseDao purchaseDao;
	
	@Override
	public PurchaseDO get(Integer id){
		return purchaseDao.get(id);
	}
	
	@Override
	public List<PurchaseDO> list(Map<String, Object> map){
		return purchaseDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return purchaseDao.count(map);
	}
	
	@Override
	public int save(PurchaseDO purchase){
		return purchaseDao.save(purchase);
	}
	
	@Override
	public int update(PurchaseDO purchase){
		return purchaseDao.update(purchase);
	}
	
	@Override
	public int remove(Integer id){
		return purchaseDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return purchaseDao.batchRemove(ids);
	}

	@Override
	public PurchaseDO getInfo(PurchaseDO purchaseDO) {
		return purchaseDao.getInfo(purchaseDO);
	}

}
